package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuKpiRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 记录业务对象 manu_kpi_record
 *
 * @author Bin Liu
 * @date 2024-08-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuKpiRecord.class, reverseConvertGenerate = false)
public class ManuKpiRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 主数据主键
     */
    @NotNull(message = "主数据主键不能为空", groups = { AddGroup.class })
    private Long masterId;

    /**
     * 年份
     */
    private Integer yearNum;

    /**
     * 月份
     */
    private Integer monthNum;

    /**
     * 周
     */
    private Integer weekNum;

    /**
     * 日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date byDaily;

    /**
     * 班次
     */
    private Integer byShift;

    /**
     * 数据结果
     */
    @NotNull(message = "数据结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal kpiResult;

    private String[] masterIds;

}
